#include <49func.h>
void *func(){
    printf("A");
    //return (void *)0;
    pthread_exit((void *)0);
    //exit(0);
}
void * threadFunc(void *arg){
    //sleep(10);
    //return (void *)0;
    func();
    printf("B\n");
}
int main()
{
    pthread_t tid;
    pthread_create(&tid,NULL,threadFunc,NULL);
    sleep(10);
    printf("A\n");
    while(1);
    return 0;
}

